<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkPrintJob</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="Printing.html" title="打印">
<link rel="prev" href="gtk3-GtkPrinter.html" title="GtkPrinter">
<link rel="next" href="gtk3-GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk3-GtkPrinter.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="Printing.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkPrintUnixDialog.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkPrintJob.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkPrintJob.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkPrintJob"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkPrintJob.top_of_page"></a>GtkPrintJob</span></h2>
<p>GtkPrintJob — Represents a print job</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkPrintJob.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtkprintjob.h&gt;

struct              <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob">GtkPrintJob</a>;
<span class="returnvalue">void</span>                (<a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJobCompleteFunc" title="GtkPrintJobCompleteFunc ()">*GtkPrintJobCompleteFunc</a>)          (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *print_job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>);
<a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="returnvalue">GtkPrintJob</span></a> *       <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-new" title="gtk_print_job_new ()">gtk_print_job_new</a>                   (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintSettings" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> *settings</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPageSetup.html#GtkPageSetup" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *page_setup</code></em>);
<a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintSettings" title="GtkPrintSettings"><span class="returnvalue">GtkPrintSettings</span></a> *  <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-settings" title="gtk_print_job_get_settings ()">gtk_print_job_get_settings</a>          (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);
<a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="returnvalue">GtkPrinter</span></a> *        <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-printer" title="gtk_print_job_get_printer ()">gtk_print_job_get_printer</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-title" title="gtk_print_job_get_title ()">gtk_print_job_get_title</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);
<a class="link" href="gtk3-High-level-Printing-API.html#GtkPrintStatus" title="enum GtkPrintStatus"><span class="returnvalue">GtkPrintStatus</span></a>      <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-status" title="gtk_print_job_get_status ()">gtk_print_job_get_status</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-set-source-file" title="gtk_print_job_set_source_file ()">gtk_print_job_set_source_file</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="../cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="returnvalue">cairo_surface_t</span></a> *   <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-surface" title="gtk_print_job_get_surface ()">gtk_print_job_get_surface</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-send" title="gtk_print_job_send ()">gtk_print_job_send</a>                  (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJobCompleteFunc" title="GtkPrintJobCompleteFunc ()"><span class="type">GtkPrintJobCompleteFunc</span></a> callback</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> dnotify</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-set-track-print-status" title="gtk_print_job_set_track_print_status ()">gtk_print_job_set_track_print_status</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> track_status</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-track-print-status" title="gtk_print_job_get_track_print_status ()">gtk_print_job_get_track_print_status</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);
<a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintPages" title="enum GtkPrintPages"><span class="returnvalue">GtkPrintPages</span></a>       <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-pages" title="gtk_print_job_get_pages ()">gtk_print_job_get_pages</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-set-pages" title="gtk_print_job_set_pages ()">gtk_print_job_set_pages</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintPages" title="enum GtkPrintPages"><span class="type">GtkPrintPages</span></a> pages</code></em>);
<a class="link" href="gtk3-GtkPrintSettings.html#GtkPageRange" title="struct GtkPageRange"><span class="returnvalue">GtkPageRange</span></a> *      <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-page-ranges" title="gtk_print_job_get_page_ranges ()">gtk_print_job_get_page_ranges</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *n_ranges</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-set-page-ranges" title="gtk_print_job_set_page_ranges ()">gtk_print_job_set_page_ranges</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrintSettings.html#GtkPageRange" title="struct GtkPageRange"><span class="type">GtkPageRange</span></a> *ranges</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_ranges</code></em>);
<a class="link" href="gtk3-GtkPrintSettings.html#GtkPageSet" title="enum GtkPageSet"><span class="returnvalue">GtkPageSet</span></a>          <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-page-set" title="gtk_print_job_get_page_set ()">gtk_print_job_get_page_set</a>          (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-set-page-set" title="gtk_print_job_set_page_set ()">gtk_print_job_set_page_set</a>          (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrintSettings.html#GtkPageSet" title="enum GtkPageSet"><span class="type">GtkPageSet</span></a> page_set</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-num-copies" title="gtk_print_job_get_num_copies ()">gtk_print_job_get_num_copies</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-set-num-copies" title="gtk_print_job_set_num_copies ()">gtk_print_job_set_num_copies</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> num_copies</code></em>);
<a href="../glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>             <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-scale" title="gtk_print_job_get_scale ()">gtk_print_job_get_scale</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-set-scale" title="gtk_print_job_set_scale ()">gtk_print_job_set_scale</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> scale</code></em>);
<a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>               <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-n-up" title="gtk_print_job_get_n_up ()">gtk_print_job_get_n_up</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-set-n-up" title="gtk_print_job_set_n_up ()">gtk_print_job_set_n_up</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> n_up</code></em>);
<a class="link" href="gtk3-GtkPrintSettings.html#GtkNumberUpLayout" title="enum GtkNumberUpLayout"><span class="returnvalue">GtkNumberUpLayout</span></a>   <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-n-up-layout" title="gtk_print_job_get_n_up_layout ()">gtk_print_job_get_n_up_layout</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-set-n-up-layout" title="gtk_print_job_set_n_up_layout ()">gtk_print_job_set_n_up_layout</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrintSettings.html#GtkNumberUpLayout" title="enum GtkNumberUpLayout"><span class="type">GtkNumberUpLayout</span></a> layout</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-rotate" title="gtk_print_job_get_rotate ()">gtk_print_job_get_rotate</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-set-rotate" title="gtk_print_job_set_rotate ()">gtk_print_job_set_rotate</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> rotate</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-collate" title="gtk_print_job_get_collate ()">gtk_print_job_get_collate</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-set-collate" title="gtk_print_job_set_collate ()">gtk_print_job_set_collate</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> collate</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-reverse" title="gtk_print_job_get_reverse ()">gtk_print_job_get_reverse</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-set-reverse" title="gtk_print_job_set_reverse ()">gtk_print_job_set_reverse</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> reverse</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkPrintJob.description"></a><h2>Description</h2>
<p>
A <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> object represents a job that is sent to a
printer. You only need to deal directly with print jobs if
you use the non-portable <a class="link" href="gtk3-GtkPrintUnixDialog.html#GtkPrintUnixDialog" title="struct GtkPrintUnixDialog"><span class="type">GtkPrintUnixDialog</span></a> API.
</p>
<p>
Use <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-get-surface" title="gtk_print_job_get_surface ()"><code class="function">gtk_print_job_get_surface()</code></a> to obtain the cairo surface
onto which the pages must be drawn. Use <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-send" title="gtk_print_job_send ()"><code class="function">gtk_print_job_send()</code></a>
to send the finished job to the printer. If you don't use cairo
<a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> also supports printing of manually generated postscript,
via <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-set-source-file" title="gtk_print_job_set_source_file ()"><code class="function">gtk_print_job_set_source_file()</code></a>.
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkPrintJob.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkPrintJob"></a><h3>struct GtkPrintJob</h3>
<pre class="programlisting">struct GtkPrintJob {
  GObject parent_instance;

  GtkPrintJobPrivate *priv;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkPrintJobCompleteFunc"></a><h3>GtkPrintJobCompleteFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                (*GtkPrintJobCompleteFunc)          (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *print_job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *error</code></em>);</pre>
<p>
The type of callback that is passed to <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-send" title="gtk_print_job_send ()"><code class="function">gtk_print_job_send()</code></a>.
It is called when the print job has been completely sent.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>print_job</code></em> :</span></p></td>
<td>the <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data that has been passed to <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-send" title="gtk_print_job_send ()"><code class="function">gtk_print_job_send()</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> that contains error information if the sending
of the print job failed, otherwise <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-new"></a><h3>gtk_print_job_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="returnvalue">GtkPrintJob</span></a> *       gtk_print_job_new                   (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> *printer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintSettings" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> *settings</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPageSetup.html#GtkPageSetup" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *page_setup</code></em>);</pre>
<p>
Creates a new <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
<td>the job title</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>printer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>settings</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintSettings" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>page_setup</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPageSetup.html#GtkPageSetup" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-settings"></a><h3>gtk_print_job_get_settings ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintSettings" title="GtkPrintSettings"><span class="returnvalue">GtkPrintSettings</span></a> *  gtk_print_job_get_settings          (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);</pre>
<p>
Gets the <a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintSettings" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> of the print job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the settings of <em class="parameter"><code>job</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-printer"></a><h3>gtk_print_job_get_printer ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="returnvalue">GtkPrinter</span></a> *        gtk_print_job_get_printer           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);</pre>
<p>
Gets the <a class="link" href="gtk3-GtkPrinter.html#GtkPrinter" title="struct GtkPrinter"><span class="type">GtkPrinter</span></a> of the print job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the printer of <em class="parameter"><code>job</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-title"></a><h3>gtk_print_job_get_title ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_print_job_get_title             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);</pre>
<p>
Gets the job title.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the title of <em class="parameter"><code>job</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-status"></a><h3>gtk_print_job_get_status ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-High-level-Printing-API.html#GtkPrintStatus" title="enum GtkPrintStatus"><span class="returnvalue">GtkPrintStatus</span></a>      gtk_print_job_get_status            (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);</pre>
<p>
Gets the status of the print job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the status of <em class="parameter"><code>job</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-set-source-file"></a><h3>gtk_print_job_set_source_file ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_print_job_set_source_file       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Make the <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> send an existing document to the 
printing system. The file can be in any format understood
by the platforms printing system (typically PostScript,
but on many platforms PDF may work too). See 
<a class="link" href="gtk3-GtkPrinter.html#gtk-printer-accepts-pdf" title="gtk_printer_accepts_pdf ()"><code class="function">gtk_printer_accepts_pdf()</code></a> and <a class="link" href="gtk3-GtkPrinter.html#gtk-printer-accepts-ps" title="gtk_printer_accepts_ps ()"><code class="function">gtk_printer_accepts_ps()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>the file to be printed. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> filename]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for errors</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an error occurred</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-surface"></a><h3>gtk_print_job_get_surface ()</h3>
<pre class="programlisting"><a href="../cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="returnvalue">cairo_surface_t</span></a> *   gtk_print_job_get_surface           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Gets a cairo surface onto which the pages of
the print job should be rendered.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for errors, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the cairo surface of <em class="parameter"><code>job</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-send"></a><h3>gtk_print_job_send ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_print_job_send                  (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJobCompleteFunc" title="GtkPrintJobCompleteFunc ()"><span class="type">GtkPrintJobCompleteFunc</span></a> callback</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> dnotify</code></em>);</pre>
<p>
Sends the print job off to the printer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a GtkPrintJob</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
<td>function to call when the job completes or an error occurs</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data that gets passed to <em class="parameter"><code>callback</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>dnotify</code></em> :</span></p></td>
<td>destroy notify for <em class="parameter"><code>user_data</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-set-track-print-status"></a><h3>gtk_print_job_set_track_print_status ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_print_job_set_track_print_status
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> track_status</code></em>);</pre>
<p>
If track_status is <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the print job will try to continue report
on the status of the print job in the printer queues and printer. This
can allow your application to show things like "out of paper" issues,
and when the print job actually reaches the printer.
</p>
<p>
This function is often implemented using some form of polling, so it should
not be enabled unless needed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>track_status</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to track status after printing</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-track-print-status"></a><h3>gtk_print_job_get_track_print_status ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_print_job_get_track_print_status
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);</pre>
<p>
Returns wheter jobs will be tracked after printing.
For details, see <a class="link" href="gtk3-GtkPrintJob.html#gtk-print-job-set-track-print-status" title="gtk_print_job_set_track_print_status ()"><code class="function">gtk_print_job_set_track_print_status()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if print job status will be reported after printing</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-pages"></a><h3>gtk_print_job_get_pages ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintPages" title="enum GtkPrintPages"><span class="returnvalue">GtkPrintPages</span></a>       gtk_print_job_get_pages             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);</pre>
<p>
Gets the <a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintPages" title="enum GtkPrintPages"><span class="type">GtkPrintPages</span></a> setting for this job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintPages" title="enum GtkPrintPages"><span class="type">GtkPrintPages</span></a> setting</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-set-pages"></a><h3>gtk_print_job_set_pages ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_print_job_set_pages             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintPages" title="enum GtkPrintPages"><span class="type">GtkPrintPages</span></a> pages</code></em>);</pre>
<p>
Sets the <a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintPages" title="enum GtkPrintPages"><span class="type">GtkPrintPages</span></a> setting for this job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pages</code></em> :</span></p></td>
<td>the <a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintPages" title="enum GtkPrintPages"><span class="type">GtkPrintPages</span></a> setting</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-page-ranges"></a><h3>gtk_print_job_get_page_ranges ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkPrintSettings.html#GtkPageRange" title="struct GtkPageRange"><span class="returnvalue">GtkPageRange</span></a> *      gtk_print_job_get_page_ranges       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *n_ranges</code></em>);</pre>
<p>
Gets the page ranges for this job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_ranges</code></em> :</span></p></td>
<td>return location for the number of ranges. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a pointer to an
array of <a class="link" href="gtk3-GtkPrintSettings.html#GtkPageRange" title="struct GtkPageRange"><span class="type">GtkPageRange</span></a> structs. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_ranges][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-set-page-ranges"></a><h3>gtk_print_job_set_page_ranges ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_print_job_set_page_ranges       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrintSettings.html#GtkPageRange" title="struct GtkPageRange"><span class="type">GtkPageRange</span></a> *ranges</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_ranges</code></em>);</pre>
<p>
Sets the page ranges for this job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ranges</code></em> :</span></p></td>
<td>pointer to an array of
<a class="link" href="gtk3-GtkPrintSettings.html#GtkPageRange" title="struct GtkPageRange"><span class="type">GtkPageRange</span></a> structs. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_ranges]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_ranges</code></em> :</span></p></td>
<td>the length of the <em class="parameter"><code>ranges</code></em> array</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-page-set"></a><h3>gtk_print_job_get_page_set ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkPrintSettings.html#GtkPageSet" title="enum GtkPageSet"><span class="returnvalue">GtkPageSet</span></a>          gtk_print_job_get_page_set          (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);</pre>
<p>
Gets the <a class="link" href="gtk3-GtkPrintSettings.html#GtkPageSet" title="enum GtkPageSet"><span class="type">GtkPageSet</span></a> setting for this job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gtk3-GtkPrintSettings.html#GtkPageSet" title="enum GtkPageSet"><span class="type">GtkPageSet</span></a> setting</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-set-page-set"></a><h3>gtk_print_job_set_page_set ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_print_job_set_page_set          (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrintSettings.html#GtkPageSet" title="enum GtkPageSet"><span class="type">GtkPageSet</span></a> page_set</code></em>);</pre>
<p>
Sets the <a class="link" href="gtk3-GtkPrintSettings.html#GtkPageSet" title="enum GtkPageSet"><span class="type">GtkPageSet</span></a> setting for this job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>page_set</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintSettings.html#GtkPageSet" title="enum GtkPageSet"><span class="type">GtkPageSet</span></a> setting</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-num-copies"></a><h3>gtk_print_job_get_num_copies ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_print_job_get_num_copies        (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);</pre>
<p>
Gets the number of copies of this job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the number of copies</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-set-num-copies"></a><h3>gtk_print_job_set_num_copies ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_print_job_set_num_copies        (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> num_copies</code></em>);</pre>
<p>
Sets the number of copies for this job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>num_copies</code></em> :</span></p></td>
<td>the number of copies</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-scale"></a><h3>gtk_print_job_get_scale ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>             gtk_print_job_get_scale             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);</pre>
<p>
Gets the scale for this job (where 1.0 means unscaled).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the scale</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-set-scale"></a><h3>gtk_print_job_set_scale ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_print_job_set_scale             (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> scale</code></em>);</pre>
<p>
Sets the scale for this job (where 1.0 means unscaled).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>scale</code></em> :</span></p></td>
<td>the scale</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-n-up"></a><h3>gtk_print_job_get_n_up ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>               gtk_print_job_get_n_up              (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);</pre>
<p>
Gets the n-up setting for this job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the n-up setting</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-set-n-up"></a><h3>gtk_print_job_set_n_up ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_print_job_set_n_up              (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> n_up</code></em>);</pre>
<p>
Sets the n-up setting for this job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_up</code></em> :</span></p></td>
<td>the n-up value</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-n-up-layout"></a><h3>gtk_print_job_get_n_up_layout ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkPrintSettings.html#GtkNumberUpLayout" title="enum GtkNumberUpLayout"><span class="returnvalue">GtkNumberUpLayout</span></a>   gtk_print_job_get_n_up_layout       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);</pre>
<p>
Gets the n-up layout setting for this job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the n-up layout</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-set-n-up-layout"></a><h3>gtk_print_job_set_n_up_layout ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_print_job_set_n_up_layout       (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrintSettings.html#GtkNumberUpLayout" title="enum GtkNumberUpLayout"><span class="type">GtkNumberUpLayout</span></a> layout</code></em>);</pre>
<p>
Sets the n-up layout setting for this job.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
<td>the n-up layout setting</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-rotate"></a><h3>gtk_print_job_get_rotate ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_print_job_get_rotate            (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);</pre>
<p>
Gets whether the job is printed rotated.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the job is printed rotated</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-set-rotate"></a><h3>gtk_print_job_set_rotate ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_print_job_set_rotate            (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> rotate</code></em>);</pre>
<p>
Sets whether this job is printed rotated.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>rotate</code></em> :</span></p></td>
<td>whether to print rotated</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-collate"></a><h3>gtk_print_job_get_collate ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_print_job_get_collate           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);</pre>
<p>
Gets whether this job is printed collated.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the job is printed collated</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-set-collate"></a><h3>gtk_print_job_set_collate ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_print_job_set_collate           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> collate</code></em>);</pre>
<p>
Sets whether this job is printed collated.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>collate</code></em> :</span></p></td>
<td>whether the job is printed collated</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-get-reverse"></a><h3>gtk_print_job_get_reverse ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_print_job_get_reverse           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>);</pre>
<p>
Gets whether this job is printed reversed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the job is printed reversed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-print-job-set-reverse"></a><h3>gtk_print_job_set_reverse ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_print_job_set_reverse           (<em class="parameter"><code><a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a> *job</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> reverse</code></em>);</pre>
<p>
Sets whether this job is printed reversed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>job</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintJob.html#GtkPrintJob" title="struct GtkPrintJob"><span class="type">GtkPrintJob</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>reverse</code></em> :</span></p></td>
<td>whether the job is printed reversed</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>